<template>
  <div @contextmenu.stop="$emit('contextmenu')">
    <template v-if="refContextmenu._uid">
      <div v-refContextmenu="refContextmenu">
        <slot></slot>
      </div>
    </template>
    <template v-else>
      <slot></slot>
    </template>
  </div>
</template>

<script>
export default {
  props: {
    refContextmenu: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {};
  }
};
</script>
